﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.Core
{
    public class BlogPost : Entity
    {
        [MaxLength(50)]
        [Display(Name="标题")]
        public string Title { get; set; }

        [MaxLength(2000)]
        [Display(Name = "描述")]
        public string Description { get; set; }

        [MaxLength(50)]
        [Display(Name = "类型")]
        public string Type { get; set; }

        [Display(Name = "内容")]
        public string Content { get; set; }

        [MaxLength(50)]
        [Display(Name = "标签")]
        public string Tags { get; set; }

        public virtual ICollection<BlogComment> BlogComments
        {
            get;
            set;
        }

    }
}
